package com.example.testdemo.mapper;

import android.database.sqlite.SQLiteDatabase;

import com.example.testdemo.MainActivity;
import com.example.testdemo.annotation.Component;
import com.example.testdemo.db.BaseDao;
import com.example.testdemo.vo.Test;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2020-03-27 17:34
 */
@Component
public class TestDao extends BaseDao<Test> {

    public TestDao() throws Exception {
        super();
    }

    @Override
    protected String createTableSql() {
        return "create table if not exists tb_test(id integer primary key autoincrement,content text)";
    }


    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
